/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Outputsdemo;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 *
 * @author Administrator
 */
public class OutputsDemo {
    public static void main(String[] args) throws FileNotFoundException {
        File file=new File("c:\\","text.txt");
        FileOutputStream f=new FileOutputStream(file,true);
        BufferedReader br=new BufferedReader(f);
        
        String temp=null;
        
        while((temp=br.readLine())!=null){
            
            System.out.println("temp");
        }
        
     
        
        
        
    }
}
